<?php 
/**
 * 车辆数据模型model类
 * @Author    紫梦
 * @DateTime  2018-02-06
 * @copyright 响响租车
 * @version   1.0
 */
namespace app\common\model;
use think\Model;

class OffAbnormal extends Model
{
	
	protected $autoWriteTimestamp = true;

	public function brand()
    {
        return $this->hasOne('Brand','id','brand_id')->field('id,name');
    }
    public function agency()
    {
        return $this->hasOne('Agency','id','agency_id')->field('id,name');
    }
}